package lib;

public class Field {
	public Field(String name, String type, String options) {
		this.name = name;
		this.type = type;
		this.options = options;
		
	}
	public Field(String name, String type, String options,String value) {
		this.name = name;
		this.type = type;
		this.options = options;
		this.value = value;
	}
	
	public Field(String name, String value) {
		this.name = name;
		this.value = value;
		
	}
	public Field(String type) {
		this.type = type;
	}

	public Field() {}
	public String getName() {
		return name;
	}
	public Field setName(String name) {
		this.name = name;
		return this;
	}
	public String getType() {
		return type;
	}
	public Field setType(String type) {
		this.type = type;
		return this;
	}
	public String getOptions() {
		return options;
	}
	public Field setOptions(String options) {
		this.options = options;
		return this;
	}
	public String getValue() {
		return value;
	}
	public Field setValue(String value) {
		this.value = value;
		return this;
	}
	public Object getObjValue() {
		return objValue;
		
	}
	public Field setObjValue(Object objValue) {
		this.objValue = objValue;
		return this;
	}

	private String name = "";
	private String type = "";
	private String options = "";
	private String value = "";
	private Object objValue = new Object();
	
	public String toString()
	{
		return "Name: " + name + " | Type: " + type + " | Options: " + options +" | Value: " + value + "\n"; 
	}
}
